package com.zhuiyun.educations.api.course.service;

import com.zhuiyun.educations.api.course.entity.Course;
import com.zhuiyun.educations.api.course.entity.DTO.CourseDTO;
import com.zhuiyun.educations.api.rotationimage.entity.ImageFile;
import com.zhuiyun.educations.common.errorCode.CommonException;
import com.zhuiyun.educations.common.response.CommonResult;
import com.zhuiyun.educations.util.pageUtil.PageRequest;
import com.zhuiyun.educations.util.pageUtil.PageResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface CourseService {

    /**
    * @Author 杨友朋
    * @Description TODO 根据id修改课程信息
    * @Date 2023/6/26 9:57
    * @Return CommonResult
    * @param course
    */
    CommonResult updateCourseById(MultipartFile imageFile, Course course);

    /**
    * @Author 杨友朋
    * @Description TODO 添加课程信息
    * @Date 2023/6/26 9:57
    * @Return CommonResult
    * @param course
    */
    CommonResult insertCourse(MultipartFile imageFile, MultipartFile file, Course course) throws CommonException;

    /**
    * @Author 杨友朋
    * @Description TODO 根据id删除课程
    * @Date 2023/6/26 9:58
    * @Return CommonResult
    * @param id
    */
    CommonResult deleteCourseById(Integer id);

    /**
    * @Author 杨友朋
    * @Description TODO 根据ids批量删除课程
    * @Date 2023/6/26 9:59
    * @Return CommonResult
    * @param ids
    */
    CommonResult deleteByCourseIds(List<Integer> ids);

    /**
    * @Author 杨友朋
    * @Description TODO 根据id修改课程状态
    * @Date 2023/6/26 9:59
    * @Return CommonResult
    * @param course
    */
    CommonResult updateCourseStatusById(Course course);

    /**
    * @Author 杨友朋
    * @Description TODO 根据ids批量修改课程状态
    * @Date 2023/6/26 14:06
    * @Return CommonResult
    * @param ids,course
    */

    CommonResult updateCourseByIds(List<Integer> ids, Course course);
}
